﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using ARR.Services.Domain;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "RangeReviewsService" in both code and config file together.
    public class RangeReviewsService : IRangeReviewsService
    {
        public List<RangeReview> GetAll(int countryId, bool lazyLoad)
        {
            return RangeReviewDomain.GetAll(countryId, lazyLoad);
        }

        public RangeReview GetById(int rangeReviewId, bool lazyLoad)
        {
            return RangeReviewDomain.GetById(rangeReviewId, lazyLoad);
        }

        public RangeReview GetByTitle(string title, int countryId, bool lazyLoad)
        {
            return RangeReviewDomain.GetByTitle(title, countryId, lazyLoad);
        }

        public List<RangeReviewBenchmark> GetRangeReviewBenchmarks(int rangeReviewId)
        {
            return RangeReviewDomain.GetRangeReviewBenchmarks(rangeReviewId);
        }

        public List<RangeReviewSetup> GetRangeReviewSetups(int rangeReviewId, int categoryId)
        {
            return RangeReviewDomain.GetRangeReviewSetups(rangeReviewId, categoryId);
        }
        
        public void SaveAll(List<RangeReview> rangeReviews)
        {
            RangeReviewDomain.SaveAll(rangeReviews);
        }

        public RangeReviewStore GetRangeReviewSameStore(int rangeReviewId)
        {
            return RangeReviewDomain.GetRangeReviewSameStore(rangeReviewId);
        }

        public RangeReview SaveNewAndGetIt(RangeReview rangeReview)
        {
            return RangeReviewDomain.SaveNewAndGetIt(rangeReview);
        }
        
    }
}
